<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

use think\Route;

// api接口
Route::group('api', function() {
    // 文件上传
    Route::post('uploads', 'index/Index/uploads');

    // 图片分析
    Route::post('classify', 'index/Index/classify');

    // miss路由
    Route::miss('index/Index/miss');
});

// 首页路由
Route::get('/', 'index/Index/index');

// 错误报告
Route::get('reports', 'index/Index/getReportList');
Route::get('report/:id', 'index/Index/getReport');

// miss路由
Route::miss('index/Index/miss');
